package com.house.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.house.common.core.domain.BaseEntity;
import com.house.common.core.domain.entity.House;
import com.house.common.core.domain.entity.User;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;


/**
 * 预约看房对象 appointment
 *
 * @author tc
 * @date 2022-02-04
 */
public class Appointment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 预约编号
     */
    private Long appointmentId;

    /**
     * 用户编号
     */
    private Long userId;

    /**
     * 房屋编号
     */
    private Long houseId;

    /**
     * 状态(0:启用 1:停用)
     */
    private String status;

    /**
     * 看房日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date appTime;

    public Date getAppTime() {
        return this.appTime;
    }

    /**
     * 是否处理 (1:处理 0:未处理)
     */
    private String isHandle;

    public String getIsHandle() {
        return isHandle;
    }

    public void setIsHandle(String isHandle) {
        this.isHandle = isHandle;
    }

    public void setAppTime(Date appTime) {
        this.appTime = appTime;
    }

    public void setAppointmentId(Long appointmentId) {
        this.appointmentId = appointmentId;
    }

    public Long getAppointmentId() {
        return appointmentId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setHouseId(Long houseId) {
        this.houseId = houseId;
    }

    public Long getHouseId() {
        return houseId;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("appointmentId", getAppointmentId())
                .append("userId", getUserId())
                .append("houseId", getHouseId())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("status", getStatus())
                .append("remark", getRemark())
                .toString();
    }
}
